from app.api import abstract

class Action(abstract.Action):
    
    def _post(self):

        wish_ids = self.request.get("wish_id")
        
        wish_id = abstract.utils.ids2id(wish_ids)
        
        success = abstract.models.wish.remove(wish_id, self.viewer_id)
        
        if success: return wish_ids 
        else: return success
